<?php
	/*variables ng email at subject*/	
	$emailSubject = "Email inquiry";
	$webMaster = "mfctravelandtours@yahoo.com";
	
/*variables ng name sa loob ng form*/
	
	$name = $_POST['name'];
	$email = $_POST['email'];
	$message = $_POST['message'];
	$mobile = $_POST['mobile'];
	

	/* gathering data variables */

	$body = <<<EOD
<br><hr><br/>
Name: $name <br/>
Mobile Number: $mobile<br/>
Email: $email <br>
Message: $message <br/>

EOD;

	$headers = "From: $email\r\n";
	$headers .= "Content-type: text/html\r\n";
	$success = mail($webMaster, $emailSubject, $body, $headers);
	
	if($success)
echo "Success!";
else
echo "Failed!";


?>